package com.panomedic.gui;

import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JProgressBar;
import javax.swing.JToolBar;

/**
 *
 * @author Yare
 */
public class ToolBar extends JToolBar{
    private JProgressBar progressBar;
    private JButton showResult;
    private JButton process;
    private JButton showLut;

    public ToolBar() {
        super("Main Tool Bar");
     
        this.addSeparator(new Dimension(10,0));
        
        // Show Result
        showResult = new JButton("Show Result");
        showResult.setEnabled(false);
        this.add(showResult);
        
        // Show LUT
        showLut = new JButton("Show LUT");
        showLut.setEnabled(false);
        this.add(showLut);
        
        this.addSeparator(new Dimension(50,0));
        
        // Process
        process = new JButton("Run!");
        showResult.setEnabled(false);
        this.add(process);
        
        
        this.setFloatable(false);
        this.setRollover(true);
        
//        progressBar = new JProgressBar();
//        add(progressBar);
    
    }

    public JProgressBar getProgressBar() {
        return progressBar;
    }

    public JButton getShowResult() {
        return showResult;
    }

    public void setShowLutEnabled(boolean value) {
        showLut.setEnabled(value);
    }
    
    public void setShowResultEnabled(boolean value) {
        showResult.setEnabled(value);
    }

    public JButton getProcess() {
        return process;
    }

    public JButton getShowLut() {
        return showLut;
    }
    
    
    
    
}
